spinner: Don't arbitrarily limit sizes anymore
authorBenjamin Otte <otte@redhat.com>
Mon, 5 May 2014 13:32:34 +0000 (15:32 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 14 May 2014 02:28:34 +0000 (04:28 +0200)
This essentially reverts b33877e1737a7799b29f5b3a3d291e55e95e8436

Now that we can theme the spinner as a real icon using -gtk-icontheme()
this limit is no longer necessary.

gtk/gtkspinner.c

index 86c4e1a5c991613844d2ef4db38b7d0d64f75248..fa6933ef73fa23cb9dcbc01b38d2876f60a3b44c 100644 (file)
@@ -200,12 +200,6 @@ gtk_spinner_draw (GtkWidget *widget,
   height = gtk_widget_get_allocated_height (widget);
   size = MIN (width, height);
 
-  /* at most allow a double size spinner */
-  if (size >= 3 * SPINNER_SIZE)
-    size = SPINNER_SIZE * 2;
-  else
-    size = SPINNER_SIZE;
-
   gtk_render_activity (context, cr,
                        (width - size) / 2,
                        (height - size) / 2,